package ext

import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.getByType
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

val Project.libs
    get(): VersionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs")

internal data class ProjectConf(
    val targetSdk: Int = 34,
    val minSdk: Int = 28,
    val compileSdk: Int = 34,
    val javaVersion: JavaVersion = JavaVersion.VERSION_17,
    val jvmTarget: JvmTarget = JvmTarget.JVM_17,
    val appComposeCompilerVersion: String = "1.5.7",
)

internal val conf get() = ProjectConf()
